export default class RoadPointsScript extends Laya.Script3D {
  public static pointArr : Array<Laya.Vector3>
  onEnable(){
    let len = this.owner.numChildren
    RoadPointsScript.pointArr = new Array(len)
    for(let i = 0; i < len; i++) {
      RoadPointsScript.pointArr[i] = ((this.owner as Laya.Sprite3D).getChildAt(i) as Laya.Sprite3D).transform.position
    }
    // console.log((this.owner as Laya.Sprite3D).numChildren,  RoadPointsScript.pointArr)
  }
}